{extend name='index/base' /}

{block name='main'}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 银行列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c">
        <form id="myform" action="" method="get">
            <input id="pc" type="hidden" name="p" value="{$get.p}">
        </form>
    </div>
    <div class="cl pd-5 bg-1 bk-gray "> <span class="l"><a href="javascript:;" onclick="addvip('添加','{:url("admin/System/addbank")}','','700')" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe600;</i> 添加</a></span>  </div>
    <div class="mt-20">
        <div class="dataTables_length mb-15" id="DataTables_Table_0_length">
            <label>显示
                <select name="DataTables_Table_0_length" id="p" style="width: 50px" aria-controls="DataTables_Table_0" class="select">
                    <option value="10" {if condition="$get.p==10"}selected{/if}>10</option>
                    <option value="25" {if condition="$get.p==25"}selected{/if}>25</option>
                    <option value="50" {if condition="$get.p==50"}selected{/if}>50</option>
                    <option value="100" {if condition="$get.p==100"}selected{/if}>100</option>
                </select> 条
            </label>
        </div>
        <table class="table table-border table-bordered table-hover table-bg table-sort" id="mytable">
            <thead>
            <tr class="text-c">
                <th width="25"><input type="checkbox" name="" value=""></th>
                <th>ID</th>
                <th>银行名称</th>
                <th>银行图标</th>
                <th>添加时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name='list' id='user'}
            <tr class="text-c">

                <td><input type="checkbox" value="1" name=""></td>
                <td>{$user.id}</td>
                <td>{$user.bankName}</td>
                <td><img src="/upload/bank/{$user.bankPhoto}" alt="" width="150px" height="100px"></td>
                <td>{$user.createtime}</td>
                <td>
                    <a href="{:url('admin/System/bankstatus')}?id={$user.id}">{if condition="$user.state == 1"} 启用 {else /}<span style="color: red">禁用</span>{/if}</a>
                </td>
                <td>
                    <a href="javascript:;" onclick="addvip('编辑','{:url("admin/System/editbank")}?id={$user.id}','','700')" class="">编辑</a>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        {$page}
    </div>
</div>
</body>


</html>

{/block}


{block name='my'}
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="/static/admin/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<!--<script type="text/javascript" src="/static/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>-->
<script type="text/javascript" src="/static/admin/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript">


    /*用户-添加*/
    function addvip(title,url,w,h){
        layer_show(title,url,w,h);
    }


    $('#p').change(function () {
        var c=$(this).val();
        $('#pc').val(c);
        $('#myform').submit();

    })

</script>

{/block}